Skip to content

fix: write rule name into markdown frontmatter - #13150

Open
tonycoder-hub wants to merge 1 commit into
continuedev:mainfrom
tonycoder-hub:cursor/fix-rule-markdown-missing-name-frontmatter-96f6
Open

fix: write rule name into markdown frontmatter#13150
tonycoder-hub wants to merge 1 commit into
continuedev:mainfrom
tonycoder-hub:cursor/fix-rule-markdown-missing-name-frontmatter-96f6

Conversation

@tonycoder-hub

Copy link
Copy Markdown

createRuleMarkdown takes a name argument and never emits it. The name used to be an H1 in the rule body and was dropped without adding it to YAML frontmatter, so rules created via create_rule_block or New Rule had no name and markdownToRule fell back to the file path.

Frontmatter now includes name: name.trim(), matching createPromptMarkdown.

Tests: packages/config-yaml markdown jest 144 passed; core tools/config/markdown 15 passed; workspaceBlocks vitest 10 passed. Distinct from #13140-#13149.

createRuleMarkdown accepted a name argument but never emitted it. The name
used to be rendered as an H1 in the rule body and was dropped when the body
was simplified, so rules created via create_rule_block or the "New Rule"
workspace block had no name and fell back to their file path.
@tonycoder-hub
tonycoder-hub requested a review from a team as a code owner August 17, 2026 11:04
@tonycoder-hub
tonycoder-hub requested review from sestinj and removed request for a team August 17, 2026 11:04
@tonycoder-hub

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant